[Top] [Prev] [Next] [Bottom] [Contents]

SaSetDefaults

Sets a default server and database for clients.

Synopsis

#include "WorkingDialog.h"
int SaSetDefaults(char *server, char *db);

Arguments

server
a pointer to the server name that is to be made the default server
db
a pointer to the database name that is to be made the default database

Return Values

Returns a 0 for success, or a -1 for failure.

Description

SaSetDefaults is used in clients generated by Sapphire/Web only. It allows the client to use a default server and database at run-time regardless of what was hard-coded in at design/compile time.

SaSetUseDefaultFlag must be called before SaSetDefaults, or the defaults will not be set.

All requests, regardless of the vendor, will use the same server and database specified by SaSetDefaults.

SaSetDefaults can be called multiple times if changing the defaults is desirable.

Example

See SaSetUseDefaultFlag for a code example.

See Also



[Top] [Prev] [Next] [Bottom] [Contents]

info@bluestone.com
Copyright © 1997, Bluestone. All rights reserved.